package com.skycong.hello77.activity.common;

import android.content.Context;
import android.text.Editable;
import android.text.TextWatcher;
import android.util.AttributeSet;
import android.view.View;
import android.widget.EditText;

/**
 * Created by Kiki on 2018/5/10.
 */

public class InputEditText extends EditText implements View.OnFocusChangeListener, TextWatcher {

    public InputEditText(Context context) {
        super(context);
        setOnFocusChangeListener(this);
        addTextChangedListener(this);
    }

    public InputEditText(Context context, AttributeSet set) {
        super(context, set);
        setOnFocusChangeListener(this);
        addTextChangedListener(this);
    }
    @Override
    public void beforeTextChanged(CharSequence s, int start, int count, int after) {

    }

    @Override
    public void onTextChanged(CharSequence s, int start, int before, int count) {

    }

    @Override
    public void afterTextChanged(Editable s) {

    }

    @Override
    public void onFocusChange(View v, boolean hasFocus) {

    }
}
